home *** CD-ROM | disk | FTP | other *** search
- ===================================================================
- RCS file: /s/usr2/K/repo/tools/cmu-snmp/snmplib/mib.c,v
- retrieving revision 1.1
- diff -c -r1.1 mib.c
- *** /tmp/,RCSt1a22330 Tue Sep 24 20:22:57 1991
- --- mib.c Tue Aug 20 22:54:27 1991
- ***************
- *** 93,100 ****
- --- 93,102 ----
- *buf++ = '.';
- cp++;
- }
- + #if 0
- if ((x % 48) == 47)
- *buf++ = '\n';
- + #endif
- }
- *buf = '\0';
- }
- ***************
- *** 396,402 ****
- struct tree *get_symbol();
-
- oid RFC1066_MIB[] = { 1, 3, 6, 1, 2, 1 };
- ! unsigned char RFC1066_MIB_text[] = ".iso.org.dod.internet.mgmt.mib";
- struct tree *Mib;
-
- init_mib()
- --- 398,412 ----
- struct tree *get_symbol();
-
- oid RFC1066_MIB[] = { 1, 3, 6, 1, 2, 1 };
- ! char RFC1066_MIB_text[] = ".iso.org.dod.internet.mgmt.mib";
- !
- ! /* phil@Shiva.COM; */
- ! #define RFC1066_MIB_text_len (sizeof(RFC1066_MIB_text)-1)
- !
- ! /* phil@Shiva.COM; */
- ! char RFC1158_MIB_text[] = ".iso.org.dod.internet.mgmt.mib-2";
- ! #define RFC1158_MIB_text_len (sizeof(RFC1158_MIB_text)-1)
- !
- struct tree *Mib;
-
- init_mib()
- ***************
- *** 671,679 ****
- *buf = '.'; /* this is a fully qualified name */
- subtree = get_symbol(objid, objidlen, subtree, buf + 1);
- cp = buf;
- ! if ((strlen(buf) >= strlen((char *)RFC1066_MIB_text)) && !bcmp(buf, (char *)RFC1066_MIB_text,
- ! strlen((char *)RFC1066_MIB_text))){
- ! cp += sizeof(RFC1066_MIB_text);
- }
- printf("Name: %s\n", cp);
- *buf = '\0';
- --- 681,693 ----
- *buf = '.'; /* this is a fully qualified name */
- subtree = get_symbol(objid, objidlen, subtree, buf + 1);
- cp = buf;
- ! if ((strlen(buf) >= RFC1158_MIB_text_len)
- ! && !bcmp(buf, (char *)RFC1158_MIB_text, RFC1158_MIB_text_len)){
- ! cp += RFC1158_MIB_text_len+1;
- ! }
- ! else if ((strlen(buf) >= RFC1066_MIB_text_len)
- ! && !bcmp(buf, (char *)RFC1066_MIB_text, RFC1066_MIB_text_len)){
- ! cp += RFC1066_MIB_text_len+1;
- }
- printf("Name: %s\n", cp);
- *buf = '\0';
-